home *** CD-ROM | disk | FTP | other *** search
/ Light ROM 1 / LIGHT-ROM 1 (Amiga Library Services)(1994).iso / ffdisks / d987.lha / History / History.doc < prev    next >
Text File  |  1994-04-05  |  2KB  |  76 lines

  1. This is a new version of the History command, for use with 2.04, 3.0, and
  2. 3.1.
  3.  
  4.             andy finkel
  5. -------------
  6.  
  7.  
  8.  
  9. History
  10.  
  11.     Template: LINES/N,START/K/N,LOAD/K,SAVE/K,SIZE/K/N,RUN/S,CLEAR/S,SHOW/S,NONUM/S
  12.  
  13.  
  14. The HISTORY command is used to control the 2.04 console handler history
  15. features.  This command allows you to review, load, save, clear, and change
  16. the size of the history buffer.  In addition, the command allows you to
  17. re-execute portions of the history buffer without using the cursor keys.
  18.  
  19. The history command can be used to display the current history buffer just
  20. by using the command
  21.  
  22. history
  23.  
  24. To see the last N entries in the history buffer, you also the number, eg
  25. history 10 will show you the last 10 entries. (You can also say history
  26. LINES 10).
  27.  
  28. To see N entries in the history buffer, starting with entry X, you would
  29. specify both numbers, eg
  30.  
  31. history 8 start 20
  32.  
  33. which will display 20 history lines starting with history entry # 8.  (you
  34. can also say HISTORY LINES 8 START 20)
  35.  
  36. On the left margin of the history listing is the command histry number.  To
  37. supress those numbers, use the NONUM keyword. (this is often useful when
  38. redirecting the output of the history cmmand into a file or a pipe.
  39.  
  40. The LOAD keyword allows you to preload the history buffer, up to the limits
  41. of the current size of the history buffer.
  42.  
  43. SAVE saves the current history buffer to a file.  NOTE: partial saves are
  44. possible, following the same rules as partial listings of the history
  45. buffer.
  46.  
  47. The CLEAR keyword erases the contents of the history buffer.  It may be
  48. used by itself, or with one of the other keywords.
  49.  
  50. The SIZE keyword allows you to change the size of the history buffer of the
  51. current console-handler.  You can change the size in 1K increments.  The
  52. initial history buffer size is 2K.
  53.  
  54. The RUN keyword allows you to run one or more commands in the history
  55. buffer.
  56.  
  57. history run 5
  58.  
  59. will run the last 5 commands.
  60.  
  61. history run 3 start 5
  62.  
  63. will run 3 commands, starting with the 5th entry in the history buffer.
  64.  
  65. a useful alias is
  66.  
  67. alias ! history lines 1 run start 
  68.  
  69. which kind of gives that Unix csh effect.
  70.  
  71. When the RUN option is specified, if no START is specified, START defaults
  72. to the last command.  If no LINES is specified, LINES defaults to one.
  73.  
  74. The SHOW option is there as a default; it can be combined with other
  75. options, however.
  76.